﻿create PROCEDURE Sync.SP_VacationYears_SelectChanges
@LastRowVersion rowversion,
@FilterdColumn UNIQUEIDENTIFIER
AS 
BEGIN 
	SELECT 
        t.[VacationYearID],
		g.[VacationYear],
		t.IsDeleted,
		t.LastUpdatedDate
	FROM [dbo].[VacationYears] g RIGHT JOIN Sync.VacationYears_Tracking t  
    ON t.VacationYearID = g.VacationYearID 
	WHERE @LastRowVersion IS NULL OR t.Version > @LastRowVersion
    END














